package com.example.questionnaire_demo.mapper;

import com.example.questionnaire_demo.model.Question;
import org.apache.ibatis.annotations.Mapper;
import java.util.List;

@Mapper
public interface QuestionMapper {
    Question selectById(Long id);
    List<Question> selectByQuestionnaireId(Long questionnaireId);
    void insert(Question question);
    void update(Question question);
    void delete(Long id);
}